<?php // Set The Field Variables
	$ppcompareproductoneid = get_field('ppcompareproductone');
	$ppcompareproducttwoid = get_field('ppcompareproducttwo');

?>

<div class="fullproductcomparison" style="margin-bottom:20px;">
	<div class="fullproductcomparisonleft">
		<?php // Query For The First Product Via ID#
			$ppcompareproductone = new wp_query('post_type=product&posts_per_page=1&p='.$ppcompareproductoneid.'');
			while($ppcompareproductone->have_posts()) : $ppcompareproductone->the_post();

				// Additional SS Product Variables
				$ppcompareproductonelink = get_permalink();
				$ppcompareproductonetitle = get_the_title();

				// Get SS Product Image
				if (get_field('productFeaturedImage') != '') {
                	$ppcompareproductoneimage = get_field('productFeaturedImage');
                } else {
                	$ppcompareproductoneimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
                        $ppcompareproductoneimage = $ppcompareproductoneimage[0];
                }

		?>

			<a href="<?php the_permalink(); ?>">
				<img src="<?php echo $ppcompareproductoneimage; ?>" alt="<?php the_title(); ?>" style="width:208px;height:208px;margin:0px;margin-bottom:10px;" />
			</a>
			<h3 style="text-align:center;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
			<p style="text-align:center;font-weight:bold;font-style:italic;">Our Online Price</p>
			<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
		
		<?php endwhile; ?>
		<?php wp_reset_query(); ?>
	</div>

	<div class="fullproductcomparisoncenter">
		&nbsp;
	</div>

	<div class="fullproductcomparisonright">
		<?php // Query For The Second Product Via ID#
			$ppcompareproducttwo = new wp_query('post_type=product&posts_per_page=1&p='.$ppcompareproducttwoid.'');
			while($ppcompareproducttwo->have_posts()) : $ppcompareproducttwo->the_post();

				// Additional SS Product Variables
				$ppcompareproducttwolink = get_permalink();
				$ppcompareproducttwotitle = get_the_title();

				// Get SS Product Image
				if (get_field('productFeaturedImage') != '') {
                	$ppcompareproducttwoimage = get_field('productFeaturedImage');
                } else {
                	$ppcompareproducttwoimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ));
                        $ppcompareproducttwoimage = $ppcompareproducttwoimage[0];
                }

		?>

			<a href="<?php the_permalink(); ?>">
				<img src="<?php echo $ppcompareproducttwoimage; ?>" alt="<?php the_title(); ?>" style="width:208px;height:208px;margin:0px;margin-bottom:10px;" />
			</a>
			<h3 style="text-align:center;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
			<p style="text-align:center;font-weight:bold;font-style:italic;">Our Online Price</p>
			<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
		
		<?php endwhile; ?>
		<?php wp_reset_query(); ?>
	</div>

	<div class="fullproductcomparisontablediv">
		<table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-size:11px;">
			<tr>
				<th colspan="3" style="text-align:center;height:30px;line-height:30px;font-size:12px;font-weight:bold;">Features &amp; Specifications</th>
			</tr>
			<?php while(has_sub_field('ppcompareproductattributes')) : ?>
				<tr>
					<td style="text-align:center;width:220px;"><?php the_sub_field('ppcompareproductoneattribute'); ?></td>
					<td style="text-align:center;width:180px;font-style:italic;"><?php the_sub_field('ppcompareproductattribute'); ?></td>
					<td style="text-align:center;width:220px;"><?php the_sub_field('ppcompareproducttwoattribute'); ?></td>
				</tr>
			<?php endwhile; ?>
		</table>
	</div>

	<div class="fullproductcomparisonleft">
		<a href="<?php echo $ppcompareproductonelink; ?>" class="button">View Product</a> <a href="<?php echo $ppcompareproductonelink; ?>?add-to-cart=<?php echo $ppcompareproductoneid; ?>" class="button">Add To Cart</a>
	</div>

	<div class="fullproductcomparisoncenter">
		&nbsp;
	</div>

	<div class="fullproductcomparisonright">
		<a href="<?php echo $ppcompareproducttwolink; ?>" class="button">View Product</a> <a href="<?php echo $ppcompareproducttwolink; ?>?add-to-cart=<?php echo $ppcompareproducttwoid; ?>" class="button">Add To Cart</a>
	</div>
    <div style="width:100%;height:0px;clear:both;"></div>
</div>